//
//  ZxFmMyReadViewController.m
//  XiMaFM
//
//  Created by fanzhuxian on 2017/9/3.
//  Copyright © 2017年 hcios. All rights reserved.
//

#import "ZxFmMyReadViewController.h"

#import "ZXSubscripitionView.h"

#import "ZxFmAddReadViewController.h"
#import "SelectedView.h"

@interface ZxFmMyReadViewController ()<ZXSubscripitionViewDelegate>

@property(nonatomic,strong)UIImageView * bgImgView;

@property (nonatomic, assign) CGFloat rect;

@end

@implementation ZxFmMyReadViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    

    self.view.backgroundColor = [UIColor colorWithRed:244 / 255.0 green:244 / 255.0 blue:244 / 255.0 alpha:1];
    
    ZXSubscripitionView * subView = [[ZXSubscripitionView alloc] initWithFrame:CGRectMake(0, 120 + 64, DEVICE_SCREEN_WIDTH, DEVICE_SCREEN_HEIGHT - 120 - 64)];
    subView.delegate = self;
    subView.backgroundColor = [UIColor colorWithRed:241 / 255.0 green:241 / 255.0 blue:241 / 255.0 alpha:1];
    [self.view addSubview:subView];
}

- (void)subscripitionButtonClick:(UIButton *)sender{
    
    UIAlertController * alter = [UIAlertController alertControllerWithTitle:@"温馨提示" message:@"请先登录哦~" preferredStyle:UIAlertControllerStyleAlert];
    
    UIAlertAction * action = [UIAlertAction actionWithTitle:@"知道了" style:UIAlertActionStyleDefault handler:nil];
    
    [alter addAction:action];
    
    // [self.navigationController presentViewController:alter animated:YES completion:nil];
    
    [self presentViewController:alter animated:YES completion:nil];
}


@end
